package com.srit.map.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.srit.core.bean.Page;
import com.srit.core.ibatis.dao.SqlMapDao;
import com.srit.map.business.bean.Company;
import com.srit.map.business.bean.CompanySearch;
import com.srit.map.business.service.MapService;

@Service
public class MapServiceImpl implements MapService {
	
	@Autowired(required = true)
	private SqlMapDao sqlMapDao;

	@Override
	public String getMapJson(String searchParm) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List searchMapbyName(Company company) {
		List list = sqlMapDao.queryForList("Company.search_company_list", company);
		return list;
	}

	@Override
	public List searchCompany(CompanySearch companySearch) {
		List list = sqlMapDao.queryForList("Company.searchCompany", companySearch);
		return list;
	}

	@Override
	public void searchCompanyByKey(Page page) {
		sqlMapDao.queryForPage("Company.searchByKey", page);
	}
	
	

}
